package com.woniu.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.project.core.domain.ProductProperty;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.project.dto.productproperty.ProdcutPropertySelectDto;
import com.woniu.project.params.productproperty.ProdcutPropertyAddParam;
import com.woniu.project.params.productproperty.ProdcutPropertySelectParam;
import com.woniu.project.params.productproperty.ProdcutPropertyUpdateParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-10-12
 */
public interface IProductPropertyService extends IService<ProductProperty> {

    IPage<ProdcutPropertySelectDto> select(ProdcutPropertySelectParam prodcutPropertySelectParam);

    int addProperty(ProdcutPropertyAddParam prodcutPropertyAddParam);

    int updateProperty(ProdcutPropertyUpdateParam prodcutPropertyUpdateParam);

    void deleteById(Integer id);

    List<ProdcutPropertySelectDto> selectByEntityId(Integer id);
}
